﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="academic-year.aspx.cs"
    Inherits="LabMS.Web.Parameters.academic_year" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>学年学期参数维护</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        学年学期参数维护</label>
                </div>
   
            </div>
        </div>
        <div class="main">
            <p>
               <%-- <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="button" OnClick="btnAdd_Click" />--%>
               <input id="addbtn" runat="server" type="button" class="button" value="添加" onclick="javascript:window.location.href='AddacadmicYear.aspx'" />
            </p>
            <asp:GridView ID="gvSemester" runat="server" AutoGenerateColumns="false" DataKeyNames="ID"
                AllowPaging="true" PageSize="5" CssClass="infoTable" Width="98%" OnPageIndexChanging="gvSemester_PageIndexChanging"
                OnRowDataBound="gvSemester_RowDataBound" OnRowCommand="gvSemester_RowCommand">
                <Columns>
                    <asp:BoundField HeaderText="序号" DataField="ID" Visible="false" />
                    <asp:BoundField HeaderText="学年" DataField="Year" />
                    <asp:BoundField HeaderText="学期" DataField="MSemester" />
                    <asp:BoundField HeaderText="开始时间" DataField="STime" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField HeaderText="结束时间" DataField="ETime" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbEdit" runat="server" Text="修改" CommandName="lbEdit" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'></asp:LinkButton>
                            <asp:LinkButton ID="lbDel" runat="server" Text="删除" CommandName="lbDel" OnClientClick="return confirm('你确定要删除？');"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    暂时没有数据
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

<script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#gvSemester > tbody > tr:even").not(":first").addClass("even");
            $("#gvSemester > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
                });
</script>

